* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: url('background.jpeg') center/cover no-repeat fixed;
    background-size: cover;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    /* 添加半透明遮罩层以确保文字可读性 */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 顶部标题 */
.header {
    text-align: center;
    padding: 20px 0;
    /* background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3); */
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* 左侧面板 */
.left-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.data-card {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.data-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 6px 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 游客数量卡片 */
.visitor-count {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.count {
    font-size: 32px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.label {
    font-size: 14px;
    color: #a0a0a0;
    margin-top: 5px;
}

/* 卡片标题 */
.card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.card-title {
    font-size: 16px;
    color: #00ffff;
    font-weight: bold;
}

/* 图表容器 */
.chart-container {
    height: 200px;
}

.chart {
    width: 100%;
    height: 100%;
}

/* 实时数据 */
.realtime-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.realtime-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-label {
    font-size: 14px;
    color: #a0a0a0;
}

.item-value {
    font-size: 16px;
    font-weight: bold;
    color: #00ffff;
}

/* 中央地图区域 */
.map-container {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.map-background {
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.2); */
    position: relative;
    /* 地图区域现在使用半透明背景，整体背景图片在body上 */
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* 主题公园动态标签 */
.theme-park-label {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.label-text {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: blink 2s infinite;
    letter-spacing: 1px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
        transform: scale(1);
    }
    25%, 75% {
        opacity: 0.7;
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.9);
        transform: scale(1.05);
    }
}

/* 会展中心动态标签 */
.exhibition-center-label {
    position: absolute;
    top: 60%;
    left: 70%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* 信息弹窗样式 */
.info-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 80, 0.95));
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 15px;
    padding: 0;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.theme-park-label:hover .info-popup,
.exhibition-center-label:hover .info-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.popup-header {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    padding: 12px 16px;
    border-radius: 13px 13px 0 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.popup-content {
    padding: 16px;
}

.popup-content p {
    margin: 0 0 12px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #e0e0e0;
}

.popup-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 12px;
    color: #a0a0a0;
}

.stat-value {
    font-size: 12px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* 弹窗箭头 */
.info-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 255, 255, 0.6);
}

/* 弹窗动画增强 */
.info-popup {
    animation: popupGlow 3s ease-in-out infinite;
}

@keyframes popupGlow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 发光区域 */
.glow-area {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.area1 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 25%;
    animation-delay: 0s;
}

.area2 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 60%;
    animation-delay: 1s;
}

.area3 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* 右侧面板 */
.right-panel {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 天气卡片 */
.weather-card {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.weather-temp {
    font-size: 36px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a0a0a0;
}

/* 实时视频监控 */
.video-monitoring {
    /* margin-top: 20px; */
    background: rgba(0, 30, 60, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.monitoring-header {
    margin-bottom: 15px;
}

.monitoring-title {
    color: #00ffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.monitor-item {
    background: rgba(0, 20, 40, 0.9);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.monitor-item:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.monitor-screen {
    position: relative;
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #001122 0%, #003344 50%, #001122 100%);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    overflow: hidden;
    margin-bottom: 5px;
}

.monitor-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.1) 2px,
        rgba(0, 255, 255, 0.1) 4px
    );
    animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.monitor-overlay {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.monitor-status {
    color: #ff4444;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.8);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.monitor-time {
    color: #00ffff;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.monitor-label {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* 景点网格 */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
}

.attraction-card {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.attraction-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.attraction-image {
    height: 60px;
    background: linear-gradient(45deg, #1a2744, #0a1428);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.attraction-image::before {
    content: '🏞️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0.7;
}

.attraction-name {
    padding: 8px;
    font-size: 12px;
    text-align: center;
    color: #ffffff;
}

/* 底部功能按钮 */
.footer {
    /* padding: 20px; */
    /* background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 255, 0.3); */
}

.function-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.func-btn {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px 25px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.func-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.func-btn:hover::before {
    left: 100%;
}

.func-btn:hover {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.2));
}

.func-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.func-btn.active {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.3), rgba(0, 128, 255, 0.3)) !important;
    border-color: rgba(0, 255, 255, 1) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5) !important;
}

.btn-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.btn-text {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .left-panel, .right-panel {
        width: 250px;
    }
    
    .function-buttons {
        gap: 20px;
    }
    
    .func-btn {
        min-width: 100px;
        padding: 12px 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}